package com.yuanchu.order.dto;

import com.yuanchu.order.entity.YoshopGoodsEntity;
import com.yuanchu.order.entity.YoshopUserAddressEntity;
import com.yuanchu.order.entity.YoshopUserCouponEntity;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-02-07 0:14
 */
@Data
@ToString
public class CheckOrderDto implements Serializable {
    // 商品列表
    private List<YoshopGoodsEntity> goodsList;
    // 订单商品总数量
    private Integer orderTotalNum;
    // 优惠券列表
    private List<YoshopUserCouponEntity> couponList;
    // 是否有错误
    private boolean hasError = false;
    // 错误信息
    private String errorMsg;
    // 配送方式
    private String delivery;
    // 收货地址
    private YoshopUserAddressEntity address;
    // 是否存在收货地址
    private boolean existAddress;
    // 运费
    private String expressPrice;
    // 是否在包邮区域内
    private boolean isIntraRegion = true;
    // 是否使用开启积分
    private boolean isAllowPoints;
    // 使用积分
    private String isUsePoints;
    // 积分金额
    private String pointsMoney;
    // 积分奖励
    private Integer pointsBonus;
    // 积分奖励数量
    private Integer pointsNum;
    // 支付方式
    private Integer payType;
    // 设置
    private Map<String, Object> setting;
    // 订单总价格
    private String orderTotalPrice;
    // 优惠券id
    private Integer couponId;
    // 优惠券抵扣金额
    private String couponMoney;
    // 订单价格
    private String orderPrice;
    // 订单支付价格
    private String orderPayPrice;

    public boolean getIsIntraRegion() {
        return isIntraRegion;
    }

    public void setIsIntraRegion(boolean isIntraRegion) {
        this.isIntraRegion = isIntraRegion;
    }

    public boolean getIsAllowPoints() {
        return isAllowPoints;
    }

    public void setIsAllowPoints(boolean isAllowPoints) {
        this.isAllowPoints = isAllowPoints;
    }

    public String getIsUsePoints() {
        return isUsePoints;
    }

    public void setIsUsePoints(String isUsePoints) {
        this.isUsePoints = isUsePoints;
    }


    public boolean getHasError() {
        return hasError;
    }



    public void setHasError(boolean hasError) {
        this.hasError = hasError;
    }
}
